<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>show5</title>
</head>
<body>

    <ul>
        <li th:each="student,stat : ${students}" th:if="${stat.count}%2!=0">
            <span th:text="${stat}"></span>
            <span th:text="${student.id}"></span>
            <span th:text="${student.name}"></span>
            <span th:text="${student.age}"></span>
        </li>
    </ul>

</body>
</html>
